#pragma once
#include <list>

namespace qb
{
	typedef struct _tag_PriceKLine_tmp {//报价日线，成交日线
		float		m_Price1;
		float		m_Price2;
		float		m_Price3;
		float		m_Price4;
		float		m_Price5;
		unsigned int		m_Date;	//日期
		bool		m_bChangeRating; //是否调整评级
		_tag_PriceKLine_tmp() {
			m_Price1 = -1000;
			m_Price2 = -1000;
			m_Price3 = -1000;
			m_Price4 = -1000;
			m_Price5 = -1000;
			m_Date = 0;
			m_bChangeRating = false;
		};
		const bool operator < (const _tag_PriceKLine_tmp& obj) const
		{
			return (m_Date < obj.m_Date);
		}
	}PriceKLine, * PPriceKLine;

	class PriceKLineList {
	public:
		std::list<PriceKLine> m_List;
	public:
		PriceKLineList() {};
		void Clear() { m_List.clear(); }
		void Insert(const PriceKLine& item) { m_List.push_back(item); }
	};
 }